package guoanmaker.provider.business.service;

import guoanmaker.provider.business.model.PersonalDomainName;
import guoanmaker.provider.business.repository.PersonalDomainNameRepository;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PersonalDomainNameService implements PersonalDomainNameinterface {
	
	@Autowired
	private PersonalDomainNameRepository  personalDomainNameRepository;
	
	@Override
	public List<PersonalDomainName> selectPersonalDomainName() {
		// TODO Auto-generated method stub
		return personalDomainNameRepository.findAll();
	}

	@Override
	public PersonalDomainName insertPersonalDomainName(
			PersonalDomainName personalDomainName) {
		// TODO Auto-generated method stub
		return personalDomainNameRepository.save(personalDomainName);
	}

}
